<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<div id="t"></div>
    <script src="./js/jquery-3.3.1.min.js"></script>
    <script src="./js/jsencrypt.js"></script>
   <!-- <script src="./js/components/core.js"></script>
    <script src="./js/components/sha1.js"></script>-->
    <script>
        let a = "123456";
        //let mi = CryptoJS.SHA1(a);

        //$("#t").text(mi);
        generateEntype();
        function generateEntype() {
            let words = "123456";
            let publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCDcwjySP4T61/8neKRDzjXw7qU1Q1Pt7MrOSz5uu1GmIGT0sbxsc1ZY0YX7LBvSlB9EdOjVkVfvgNM/ssmBKQw/cVRhK5YzEdUGQwvvvbYl97diYfTfr52DVoeRdKlodSnuKmSBpO4jOOoEewRqPBly9HUHclmQJo0TUig9DzPbwIDAQAB";
            let encrypt = new JSEncrypt();
            encrypt.setPublicKey(publicKey);
            let encryptPwd = encrypt.encryptLong(words);
            $("#t").text(encryptPwd);
        }



    </script>
</body>
</html>